﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="GPS.aspx.cs" Inherits="Charts_GPS" %>
<%@ Register Src="~/Charts/GoogleMapForASPNet.ascx" TagName="GoogleMapForASPNet" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="Server">
    <section class="featured">
        <div class="content-wrapper" dir="rtl">
            نقشه مقایسه مصرف و استاندارد   
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
      <script lang="jv" type="text/javascript">
          function SelectItem(sender, e) {
              e.IsValid = (e.Value != '0');
          }
    </script>

    <div dir="rtl" style="width: 100%;">
        <asp:Label ID="TypeLabel" runat="server" Text="نوع انرژی:" SkinID="Caption" CssClass="lable"></asp:Label>
        <asp:DropDownList ID="TypeDropDownList" runat="server" SkinID="FormDropDownList" DataSourceID="ConstantEntityDataSource"
            DataTextField="ConstantName" DataValueField="ConstantValue" >
        </asp:DropDownList>
        <asp:CustomValidator ID="TypeCustomValidator" runat="server" ClientValidationFunction="SelectItem"
            ControlToValidate="TypeDropDownList" Display="Dynamic" ErrorMessage="*" ValidateEmptyText="True" ValidationGroup="search"></asp:CustomValidator>
        <br />
        <asp:LinkButton ID="ChartLinkButton" runat="server" OnClick="ChartLinkButton_Click" Text="گزارش" CssClass="button" ValidationGroup="search"/>
        <br />
    </div>
    <br />
    <div style="float: right; width: 90%; vertical-align: top;" dir="rtl" class="gvclass">
          <uc1:GoogleMapForASPNet ID="GoogleMapForASPNet1" runat="server" />
    </div>
      <asp:EntityDataSource ID="ConstantEntityDataSource" runat="server" ConnectionString="name=ICTBillingEntities" DefaultContainerName="ICTBillingEntities"
        EnableFlattening="False"
        CommandText="(SELECT x.[ConstantValue],x.[ConstantName]  from ICTBillingEntities.tbConstants as x where (x.[PkConstantID] = 2 || x.[FatherID] = 3))"
        EntityTypeFilter="" Select="">
    </asp:EntityDataSource>
</asp:Content>

